package com.zbkj.crmeb.front.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 创建订单参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderCreateRequest对象", description="创建订单参数")
public class OrderCreateRequest {

    @ApiModelProperty(value = "真实名称")
//    @NotNull(message = "商品id不能为空")
    private String realName;

    /** 是否是指定渠道商的自建商品及大陆现货或者指定团长的推广商品 */
    private Integer isAllowSelfPickUp;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "收货地址id")
    private Integer addressId;

    @ApiModelProperty(value = "支付人姓名")
    private String idName;

    @ApiModelProperty(value = "支付人身份证")
    private String idCard;

    @ApiModelProperty(value = "座位号")
    private String seatNo;

    @ApiModelProperty(value = "")
    private Integer formId;

    @ApiModelProperty(value = "用户优惠券id")
    private Integer couponId;

    @ApiModelProperty(value = "")
    private String payType;

    @ApiModelProperty(value = "areaType: 1 大陆  2 港澳 3海外,")
    private String areaType;
    
    @ApiModelProperty(value = "")
    private Boolean useIntegral;

    @ApiModelProperty(value = "")
    private Integer bargainId;

    @ApiModelProperty(value = "")
    private Integer combinationId;

    @ApiModelProperty(value = "")
    private Integer pinkId;

    @ApiModelProperty(value = "")
    private Integer seckillId;

    @ApiModelProperty(value = "用户备注")
    private String mark;

    @ApiModelProperty(value = "")
    private Integer storeId;

    @ApiModelProperty(value = "")
    private String from;

    @ApiModelProperty(value = "快递类型 1快递  2自提")
    private Integer shippingType;

    @ApiModelProperty(value = "是否为立即购买", required = true)
    @NotNull(message = "是否为立即购买不能为空")
    private Boolean isNew;

    @ApiModelProperty(value = "")
    private Integer isChannel;

    private Integer merId;

    @ApiModelProperty(value = "自提联系方式")
    private String toPhone;

    @ApiModelProperty(value = "是否使用会员优惠, true使用")
    private Boolean useMember;

    @ApiModelProperty(value = "拼团活动id")
    private Integer activityGroupId;

    // 订单自增ID
    private Integer orderAutoId;
}
